#ifndef __CANTP_MAINFUNC_H
#define __CANTP_MAINFUNC_H

#include "cantp.h"

#define REQU_ID    0x754   /* 上位机请求ID */
#define RESP_ID    0x753   /* EPS响应ID */
#define STMIN      0x01    /* STmin = 1ms */
#define BLOCK_SIZE 0x00    /* BS = 所有连续帧 */
#define CHANNEL    0       /* 通道0 */

extern Cantp_HandlerStruct Cantp_Handler;

void CanTP_Init(void);
void Cantp_MainFunction(void);
void Cantp_Tx_Callback(rt_uint32_t id, rt_bool_t results);
void Cantp_Rx_Callback(rt_uint32_t id, rt_uint8_t* msg, rt_uint32_t size);

#endif